
export default class Text {
  constructor({value, top, left, width, ...other}) {
    this.text = new PIXI.Text(value, other);

    this.text.x = left;
    this.text.y = top;
    if (width) this.text.width = width;

    return this.text;
  }
}
